home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Utilities Professional 1-1500
/
Utilities Professional 1-1500 (1994)(WPD)[!].iso
/
07511000
/
var0859.dms
/
var0859.adf
/
MacSound.doc
< prev
next >
Wrap
Text File
|
1989-08-10
|
2KB
|
54 lines
Enclosed in this .ZOO is an AmigaBasic program to convert
8 bit sound files for the Macintosh to Amiga "8SVX",
Interleaved File Format.
Here is WHY I DID IT: We had, at work, a number of nifty
Mac sounds that our Mac users collected. Well, I couldn't
find comparable sounds on the Bulletin Boards for the
Amiga, and not to be outdone by the Mac'ers, I decided to
switch, rather than fight.
Ok, I got the Mac sounds into the Amiga (via a PCDOS 720k
format, but a modem or such would have done as well). I
used "TYPE macsound OPT H" to see what the file looked
like, and hey, was it simple.
The Mac format (there may be others I don't know about)
consists of 8 bit samples, and nothing else. Each Mac
byte is an unsigned integer where 128 represents zero
voltage output on the audio, and 255 is maximum positive
voltage, and 0 is maximum negative voltage.
The Amiga .8SVX format in the "Amiga ROM Kernal Reference
Manual: Exec" page B-63 to 67, concisely defines the
format for one shot samples. The header stuff I won't go
into, but it's pretty simple, and you can see what gets
done in the AmigaBasic program MacSound2Amy. Each byte of
the Amy sample must be converted to a signed integer,
where -128 is max negative voltage, 0 is zero, and 127 is
max positive voltage. Piece of cake.
Why, you may ask did I do it in AmigaBasic? Because it was
easy. It took less than an hour from start, looking at
the Mac file, reading the Exec manual, reading up on a few
specifics in the AmigaBasic manual, and writing a
functioning program. Ok, so it's slow, but how many
samples are you gonna do anyway?
My favorite samples are HAL 9000 saying "I'm completely
operational, and all my circuits are functioning
perfectly." which I've stuck into my startup sequence, and
"I'm Sorry Dave, I'm afraid I can't do that." I use SSP to
play the stuff. SSP.ARC is probably on your favorite
Bulletin Board.
I've included a Mac sample and the 8SVX output of this
program as an example. This stuff is in the public domain.
David Q. King
Sunland CA
May 20, 1989